<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>生日</title>
    <link rel="stylesheet" type="text/css" href="css/member201905241730.css">
    <style type="text/css">
        /*弹窗*/
    .pop_window1{
        position: absolute;
        top: 0;right: 0;bottom: 0;left: 0;
        z-index: 8889;
        display: none;
    }
    .pop_window1 div{
        width: 6.6rem;
        height: 6.6rem;
        margin:15rem auto 0;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0,0,0,0.5);
        border-radius: 0.3rem;
    }
    </style>
    <script type="text/javascript" src="../js/set_root.js"></script>
</head>

<body id="body">
    <div class="member_con">
        <div class="member_header">
            <span class="member_fanhui">返回</span><span class="member_keep">保存</span>生日
        </div>

        <div class="center">
            <div class="member_modify_name">
                <form action="" method="post"><input type="text" id="dateSelector" readonly="readonly"></form>
            </div>
        </div>
    </div>

    <div id=""></div>


    <div class="pop_window1"><div>弹框</div></div>

    <script type="text/javascript" src="../js/jquery2.24.js"></script>
    <script type="text/javascript" src="../js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../js/public/ajax.js"></script>
    <script type="text/javascript" src="js/member_info_birthday201902182000.js"></script>
    <script type="text/javascript" src="../js/rolldate.min.js"></script></body>
    <script>
        window.onload = function(){
          new rolldate.Date({
            el:'#dateSelector',
            format:'YYYY-MM-DD',
            beginYear:1930,
              confirmBefore:function(el,date){

                if(Date.parse(date.replace(/-/g,'/')) > Date.parse(new Date())){
                    var $pop = $('.pop_window1');
                    $pop.children().html("生日时间错误").end().show(function () {
                        const this_ = $(this);
                        setTimeout(function () {
                            this_.hide();
                            return;
                        }, 800);
                    });

                    return false;
                }

              },
          })
        }
    </script>
</body>

</html>
